package team.knowers.qzh.qzhgrame.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import team.knowers.qzh.qzhgrame.common.convention.result.Result;
import team.knowers.qzh.qzhgrame.dto.resp.ShowSubjectRespDTO;
import team.knowers.qzh.qzhgrame.service.SubjectGrameService;
import team.knowers.qzh.qzhgrame.common.convention.result.Results;

import java.util.List;


@RestController
@RequiredArgsConstructor
public class SubjectGrameController {
    private final SubjectGrameService subjectService;
    @GetMapping("/api/qzh-server/admin/v1/grame/subject/show")
    public Result<List<ShowSubjectRespDTO>> showsubject(){
        return Results.success(subjectService.showsubject());
    }
}
